code vault - strlast | What links here? |
//############################################################################## // copy the last n characters from the source string to the // destination string //##############################################################################
void strlast(int n, char *source, char *dest) { int i, j, s; s = strlen(source) - n; if (n < 0) s = 0;
for (i = s, j = 0; i < strlen(source); i++, j++) { dest[j] = source[i]; } dest[j] = '\0'; }
filename: | code vault - strlast |
filename: | code%20vault%20%2D%20strlast |
last edit: | March 26 2009 19:58:22 (5519 days ago) |
ct | = 1714958777.000000 = May 05 2024 21:26:17 |
ft | = 1238111902.000000 = March 26 2009 19:58:22 |
dt | = 476846875.000000 |